﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo0604
{
    //裁判
    
    class Judgment : Game
    {
        private int judg;
        private int judg2;
        public int Judg { get => judg; set => judg = value; }
        public int Judg2 { get => judg2; set => judg2 = value; }

        public Judgment(int judg, int judg2)
        {
            this.Judg = judg;
            this.Judg2 = judg2;
        }
        public Judgment() { }
        //写“嘻嘻嘻，玩家输了”
        public int Port(int gnum,int mannum) 
        {
            if (gnum==mannum)
            {
                return 0;
            }
            else if (gnum == 1 && mannum == 2 || gnum == 2 && mannum == 3 || gnum == 3 && mannum == 1 )
            {
                return 1;
            }
            else 
            {
                return -1;
            }
        }
        
       
       
    }
}
